home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / pc / egyptw.dir / 01703_Script_Food < prev    next >
Text File  |  1995-09-13  |  12KB  |  484 lines

  1. global gBeenClicked, gQuest
  2.  
  3. on EFoodRollovers1
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(6) then
  7.       repeat while rollover(6)
  8.         EgyptCursor
  9.         set the locH of sprite 12 to 452
  10.         set the locV of sprite 12 to 311
  11.         updatestage
  12.         if the mousedown then
  13.           set GBeenClicked = 1
  14.         else
  15.           if gBeenClicked = 1 then
  16.             AnimateLoopFast 6, 339, 2, "SE180201.AIF", 6
  17.           end if
  18.         end if
  19.       end repeat
  20.       set the locH of sprite 12 to 952
  21.       updatestage
  22.     else
  23.       if rollover(7) or rollover(8) then
  24.         repeat while rollover(7) or rollover(8)
  25.           EgyptCursor
  26.           set the locH of sprite 11 to 251
  27.           set the locV of sprite 11 to 329
  28.           updatestage
  29.           if the mousedown then
  30.             set GBeenClicked = 1
  31.           else
  32.             if gBeenClicked = 1 then
  33.               MilkCow
  34.             end if
  35.           end if
  36.         end repeat
  37.         set the locH of sprite 11 to 951
  38.         updatestage
  39.       else
  40.         if rollover(9) or rollover(10) then
  41.           repeat while rollover(9) or rollover(10)
  42.             EgyptCursor
  43.             set the locH of sprite 16 to 529
  44.             set the locV of sprite 16 to 313
  45.             updatestage
  46.             if the mousedown then
  47.               set GBeenClicked = 1
  48.             else
  49.               if gBeenClicked = 1 then
  50.                 Cooking
  51.               end if
  52.             end if
  53.           end repeat
  54.           set the locH of sprite 16 to 929
  55.           updatestage
  56.         else
  57.           if rollover(13) then
  58.             repeat while rollover(13)
  59.               ArrowCursor
  60.               set the locH of sprite 14 to 452
  61.               set the locV of sprite 14 to 320
  62.               updatestage
  63.             end repeat
  64.             set the locH of sprite 14 to 952
  65.             updatestage
  66.           else
  67.             if rollover(40) then
  68.               HandCursor
  69.             else
  70.               if rollover(41) then
  71.                 HandCursor
  72.               else
  73.                 if rollover(42) then
  74.                   HandCursor
  75.                 else
  76.                   ArrowCursor
  77.                 end if
  78.               end if
  79.             end if
  80.           end if
  81.         end if
  82.       end if
  83.     end if
  84.   end if
  85.   RandomQuestion(gQuest)
  86. end
  87.  
  88.  
  89. on EFoodRollovers2
  90.   set gBeenClicked = 0
  91.   if (not(CheckClickedStatus(gQuest))) then
  92.     if rollover(6) then
  93.       repeat while rollover(6)
  94.         EgyptCursor
  95.         puppetsprite 19, true
  96.         set the locH of sprite 19 to 155
  97.         set the locV of sprite 19 to 306
  98.         updatestage
  99.         if the mousedown then
  100.           set GBeenClicked = 1
  101.         else
  102.           if gBeenClicked = 1 then
  103.             repeat while gBeenClicked = 1
  104.               FoodWineMusic
  105.               exit repeat
  106.             end repeat
  107.           end if
  108.         end if
  109.       end repeat
  110.       set the locH of sprite 19 to 955
  111.       puppetsprite 19, false
  112.       updatestage
  113.     else
  114.       if rollover(7) then
  115.         repeat while rollover(7)
  116.           EgyptCursor
  117.           set the locH of sprite 18 to 295
  118.           set the locV of sprite 18 to 315
  119.           updatestage
  120.           if the mousedown then
  121.             set GBeenClicked = 1
  122.           else
  123.             if gBeenClicked = 1 then
  124.               repeat while gBeenClicked = 1
  125.                 BlowBees
  126.               end repeat
  127.             end if
  128.           end if
  129.         end repeat
  130.         set the locH of sprite 18 to 995
  131.         updatestage
  132.       else
  133.         if rollover(17) then
  134.           ArrowCursor
  135.           repeat while rollover(17)
  136.             set the locH of sprite 20 to 317
  137.             set the locV of sprite 20 to 222
  138.             updatestage
  139.           end repeat
  140.           set the locH of sprite 20 to 917
  141.           updatestage
  142.         else
  143.           if rollover(39) then
  144.             HandCursor
  145.           else
  146.             if rollover(41) then
  147.               HandCursor
  148.             else
  149.               if rollover(42) then
  150.                 HandCursor
  151.               else
  152.                 ArrowCursor
  153.               end if
  154.             end if
  155.           end if
  156.         end if
  157.       end if
  158.     end if
  159.   end if
  160.   RandomQuestion(gQuest)
  161. end
  162.  
  163. on MilkCow
  164.   ArrowCursor 
  165.   set gAnimationcast = 341
  166.   set gAnimationcast2 = 343
  167.   set count = 0
  168.   set cowhead = 1
  169.   set animating = 1
  170.   repeat while count < 4 and (the mouseUP)
  171.     if animating = 1 then
  172.       set the castnum of sprite 8 = gAnimationcast + 1
  173.       puppetsound "MilkCow2.AIFF"
  174.       updatestage
  175.       wait .5
  176.       if (the mousedown) then 
  177.         set animating = 0
  178.         exit repeat
  179.       end if
  180.       if cowhead = 1 then
  181.         set the castnum of sprite 7 = gAnimationcast2 + 1
  182.         updatestage
  183.         wait .3
  184.         if (the mousedown) then 
  185.           set animating = 0
  186.           exit repeat
  187.         end if
  188.         set the castnum of sprite 7 = gAnimationcast2
  189.         updatestage
  190.         wait .3
  191.         set cowhead = 0
  192.       else
  193.         set cowhead = 1
  194.       end if
  195.       set the castnum of sprite 8 = gAnimationcast
  196.       updatestage
  197.       puppetsound 0
  198.       wait .3
  199.       if (the mousedown) then 
  200.         set animating = 0
  201.         exit repeat
  202.       end if
  203.       set count = count + 1
  204.     end if
  205.   end repeat
  206.   set the castnum of sprite 7 = gAnimationcast2
  207.   set the castnum of sprite 8 = gAnimationcast
  208.   puppetsound 0
  209.   updatestage
  210.   set gBeenClicked = 0
  211. end
  212.  
  213. on Cooking 
  214.   ArrowCursor
  215.   set gAnimationcast1 = 350
  216.   set gAnimationcast2 = 345
  217.   set count = 0
  218.   set animating = 1
  219.   puppetsound "SE181701.AIF"
  220.   repeat while count < 2 and (the mouseUP)
  221.     if animating = 1 then
  222.       set the castnum of sprite 9 = gAnimationcast1 + 1
  223.       set the castnum of sprite 10 = gAnimationcast2 + 1
  224.       updatestage
  225.       wait .2
  226.       if (the mousedown) then 
  227.         set animating = 0
  228.         exit repeat
  229.       end if
  230.       set the castnum of sprite 9 = gAnimationcast1
  231.       set the castnum of sprite 10 = gAnimationcast2 + 2
  232.       updatestage
  233.       if (the mousedown) then 
  234.         set animating = 0
  235.         exit repeat
  236.       end if
  237.       wait .2
  238.       set the castnum of sprite 10 = gAnimationcast2 + 3
  239.       updatestage
  240.       if (the mousedown) then 
  241.         set animating = 0
  242.         exit repeat
  243.       end if
  244.       wait .2
  245.       set the castnum of sprite 10 = gAnimationcast2 + 4
  246.       updatestage
  247.       if (the mousedown) then 
  248.         set animating = 0
  249.         exit repeat
  250.       end if
  251.       wait .5
  252.       set the castnum of sprite 10 = gAnimationcast2 + 3
  253.       updatestage
  254.       if (the mousedown) then 
  255.         set animating = 0
  256.         exit repeat
  257.       end if
  258.       wait .2
  259.       set the castnum of sprite 10 = gAnimationcast2
  260.       updatestage
  261.       if (the mousedown) then 
  262.         set animating = 0
  263.         exit repeat
  264.       end if
  265.       wait .2
  266.       set the castnum of sprite 9 = gAnimationcast1 + 1
  267.       set the castnum of sprite 10 = gAnimationcast2 + 1
  268.       updatestage
  269.       if (the mousedown) then 
  270.         set animating = 0
  271.         exit repeat
  272.       end if
  273.       wait .2
  274.       set the castnum of sprite 9 = gAnimationcast1
  275.       set the castnum of sprite 10 = gAnimationcast2 + 2
  276.       updatestage
  277.       if (the mousedown) then 
  278.         set animating = 0
  279.         exit repeat
  280.       end if
  281.       wait .2
  282.       set the castnum of sprite 10 = gAnimationcast2 + 3
  283.       updatestage
  284.       if (the mousedown) then 
  285.         set animating = 0
  286.         exit repeat
  287.       end if
  288.       wait .2
  289.       set the castnum of sprite 10 = gAnimationcast2 + 4
  290.       updatestage
  291.       if (the mousedown) then 
  292.         set animating = 0
  293.         exit repeat
  294.       end if
  295.       wait .5
  296.       set the castnum of sprite 10 = gAnimationcast2 + 3
  297.       updatestage
  298.       if (the mousedown) then 
  299.         set animating = 0
  300.         exit repeat
  301.       end if
  302.       wait .2
  303.       set the castnum of sprite 10 = gAnimationcast2 + 4
  304.       updatestage
  305.       if (the mousedown) then 
  306.         set animating = 0
  307.         exit repeat
  308.       end if
  309.       wait .5
  310.       set the castnum of sprite 10 = gAnimationcast2 + 3
  311.       updatestage
  312.       if (the mousedown) then 
  313.         set animating = 0
  314.         exit repeat
  315.       end if
  316.       wait .2
  317.       set count = count + 1
  318.     end if
  319.   end repeat
  320.   set the castnum of sprite 10 = gAnimationcast2
  321.   set the castnum of sprite 9 = gAnimationcast1
  322.   updatestage
  323.   puppetsound 0
  324.   set gBeenClicked = 0
  325. end
  326.  
  327.  
  328. on FoodWineMusic
  329.   ArrowCursor
  330.   set gCast1 = 558
  331.   puppetsprite 9, true
  332.   puppetsprite 10, true
  333.   puppetsprite 11, true
  334.   puppetsprite 12, true
  335.   set count = 0
  336.   repeat while count < 2 and (the mouseUP)
  337.     set the locH of sprite 11 to 490
  338.     set the locV of sprite 11 to 247
  339.     updatestage
  340.     wait .8
  341.     if (the mousedown) then 
  342.       exit repeat
  343.     end if
  344.     puppetsound "SE181001.AIF"
  345.     set the locH of sprite 9 to 326
  346.     set the locV of sprite 9 to 261
  347.     set the locH of sprite 10 to 398
  348.     set the locV of sprite 10 to 263
  349.     updatestage
  350.     wait .2
  351.     if (the mousedown) then 
  352.       exit repeat
  353.     end if
  354.     
  355.     set the locH of sprite 11 to 862
  356.     set the locH of sprite 12 to 262
  357.     set the locV of sprite 12 to 308
  358.     updatestage
  359.     wait .2
  360.     if (the mousedown) then 
  361.       exit repeat
  362.     end if
  363.     
  364.     set the castnum of sprite 8 = gcast1 + 1
  365.     set the locH of sprite 9 to 826
  366.     set the locH of sprite 10 to 898
  367.     updatestage
  368.     wait .2
  369.     if (the mousedown) then 
  370.       exit repeat
  371.     end if
  372.     
  373.     set the castnum of sprite 8 = gcast1 + 2
  374.     set the locH of sprite 12 to 862
  375.     set the locH of sprite 9 to 326
  376.     updatestage
  377.     wait .2
  378.     if (the mousedown) then 
  379.       exit repeat
  380.     end if
  381.     
  382.     set the locH of sprite 12 to 262
  383.     set the locH of sprite 9 to 826
  384.     set the locH of sprite 10 to 398
  385.     updatestage
  386.     wait .2
  387.     if (the mousedown) then 
  388.       exit repeat
  389.     end if
  390.     
  391.     set the castnum of sprite 8 = gcast1 + 1
  392.     set the locH of sprite 12 to 862
  393.     set the locH of sprite 9 to 326
  394.     updatestage
  395.     wait .2
  396.     if (the mousedown) then 
  397.       exit repeat
  398.     end if
  399.     
  400.     set the castnum of sprite 8 = gcast1
  401.     set the locH of sprite 9 to 826
  402.     set the locH of sprite 10 to 898
  403.     updatestage
  404.     wait .2
  405.     if (the mousedown) then 
  406.       exit repeat
  407.     end if
  408.     
  409.     set the locH of sprite 9 to 326
  410.     set the locH of sprite 10 to 398
  411.     updatestage
  412.     wait .2
  413.     if (the mousedown) then 
  414.       exit repeat
  415.     end if
  416.     
  417.     set the locH of sprite 12 to 262
  418.     set the locH of sprite 9 to 826
  419.     set the locH of sprite 10 to 898
  420.     updatestage
  421.     wait .2
  422.     if (the mousedown) then 
  423.       exit repeat
  424.     end if
  425.     
  426.     set the locH of sprite 9 to 326
  427.     set the locH of sprite 10 to 398
  428.     set the locH of sprite 12 to 862
  429.     updatestage
  430.     wait .2
  431.     if (the mousedown) then 
  432.       exit repeat
  433.     end if
  434.     
  435.     set the locH of sprite 12 to 262
  436.     set the locH of sprite 9 to 826
  437.     set the locH of sprite 10 to 898
  438.     updatestage
  439.     wait .2
  440.     if (the mousedown) then 
  441.       exit repeat
  442.     end if
  443.     
  444.     set the locH of sprite 9 to 326
  445.     set the locH of sprite 10 to 398
  446.     set the locH of sprite 12 to 862
  447.     updatestage
  448.     wait .2
  449.     if (the mousedown) then 
  450.       exit repeat
  451.     end if
  452.     set count = count + 1
  453.   end repeat
  454.   set the castnum of sprite 8 = gcast1
  455.   set the locH of sprite 12 to 862
  456.   set the locH of sprite 11 to 890
  457.   set the locH of sprite 9 to 826
  458.   set the locH of sprite 10 to 898
  459.   updatestage
  460.   puppetsound 0
  461.   set gBeenClicked = 0
  462. end
  463.  
  464. on BlowBees
  465.   puppetsound "SE180601.AIF"
  466.   puppetsprite 13, true
  467.   repeat while gBeenClicked = 1 and (the mouseup)
  468.     set the locH of sprite 13 = 129
  469.     set the locV of sprite 13 = 317
  470.     updatestage
  471.     if not(soundBusy(1)) then
  472.       exit repeat
  473.     end if
  474.     if (the mousedown) then 
  475.       exit repeat
  476.     end if
  477.   end repeat
  478.   set the locH of sprite 13 = 929
  479.   updatestage
  480.   puppetsprite 13, false
  481.   puppetsound 0
  482.   set gBeenClicked = 0
  483. end
  484.